]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[ShellAppMonitor] Handle Iceweasel tripping Firefox window title detection
authorColin Walters <walters@verbum.org>
Fri, 11 Sep 2009 22:49:08 +0000 (18:49 -0400)
committerColin Walters <walters@verbum.org>
Fri, 11 Sep 2009 22:57:44 +0000 (18:57 -0400)
We have compatibility code which detects from the window title what
an application is.  However, the code didn't handle the case where
we discovered by title, but didn't have the expected .desktop file
installed.

src/shell-app-monitor.c

index fc063ce18303e38f88489c27db73f180e2f366e1..77c28f703b8df8c3d8493f07dc15ec92f61ab743 100644 (file)
@@ -437,9 +437,10 @@ get_app_for_window_direct (MetaWindow  *window)
 
       if (id != NULL)
         result = shell_app_system_load_from_desktop_file (appsys, id, NULL);
-      else
-        result = create_transient_app_for_window (window);
     }
+  if (result == NULL)
+    result = create_transient_app_for_window (window);
+
   return result;
 }